package smdc.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import smdc.common.annotation.Excel;
import smdc.common.core.domain.BaseEntity;

/**
 * 菜品规格详情对象 dish_detail
 * 
 * @author maorui
 * @date 2025-03-28
 */
public class DishDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 详情ID */
    private Long detailId;

    /** 关联菜品ID */
    @Excel(name = "关联菜品ID")
    private Long dishId;

    /** 规格类型(1-默认 2-多规格) */
    @Excel(name = "规格类型(1-默认 2-多规格)")
    private Integer specType;

    /** 规格名称(如：大份/小份) */
    @Excel(name = "规格名称(如：大份/小份)")
    private String specName;

    /** 规格价格 */
    @Excel(name = "规格价格")
    private BigDecimal specPrice;

    /** 库存(-1表示无限) */
    @Excel(name = "库存(-1表示无限)")
    private Long stock;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }
    public void setSpecType(Integer specType) 
    {
        this.specType = specType;
    }

    public Integer getSpecType() 
    {
        return specType;
    }
    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getSpecName() 
    {
        return specName;
    }
    public void setSpecPrice(BigDecimal specPrice) 
    {
        this.specPrice = specPrice;
    }

    public BigDecimal getSpecPrice() 
    {
        return specPrice;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("dishId", getDishId())
            .append("specType", getSpecType())
            .append("specName", getSpecName())
            .append("specPrice", getSpecPrice())
            .append("stock", getStock())
            .append("createTime", getCreateTime())
            .toString();
    }
}
